<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div data-role="page">
<div class="header" >
    <div  class="left-btn pointer" onClick="window.location='/index.php'"><span class="iconfont icon-back"></span></div>
    <div class="title">商家申请</div>
     
  </div>
  
<form method="post" id="reg-form" action="{$appshop}?m=register&a=regSave"  class="form-horizontal " autocomplete="off">
<div class="pd-10">
	 
      
      <div class="input-row">
        <input type="text" id="nickname" class="input-text" name="adminname" placeholder="请输入管理员"  >
      </div>
      
      <div class="input-row">
        <input type="text" id="password" class="input-text" name="password" placeholder="请输入密码"  >
      </div>
      
      <div class="input-row">
        <input type="text" id="password2" class="input-text" name="password2" placeholder="请确认密码"  >
      </div>
      <div class="form-btns">
        <div class="row">
          
            <button type="button" id="reg-submit"  class="btn btn-row btn-larger btn-success">注册</button>
          </div>
          <div class="pd-5" style="color:#999">商家申请后需要审核通过才能在前台显示</div>
          <div class="row">
          <a href="{$appshop}?m=login" style="background-color:#eee; width:98%; margin:0 auto; height:40px; text-align:center; line-height:40px; margin-top:20px; display:block">有账号，去登录&gt;&gt;</a> </div>
        </div>
</div>

 

    
 
</form>
 

{include file="footer.html"}
</div>

<script type="text/javascript" class="jsa-text">
$(function(){
	var ispost=false;
	$("#reg-submit").on("click",function(){
		if(ispost==true) return false;
		ispost=true;
		setTimeout(function(){
			ispost=false;
		},1000);
		$.post("{$appshop}?m=register&a=Save&ajax=1",$("#reg-form").serialize(),function(data){
			if(data.error){
				skyToast(data.message);
			}else{
				skyToast("注册成功");
				setTimeout(function(){
				window.location="{$appshop}?m=login";
				},700);
			}
		},"json");
	});
});
</script>
</body>
</html>
